package point;

public class Coordinate {
	double x;
	double y;
	int size = 0;
	
	public int getSize() {
		return size;
	}
	public void setSize() {
		this.size++;
	}
	public Coordinate(String x, String y){
		setX(x);
		setY(y);
	}
	public double getAvrX(){
		return x/size;
	}
	
	public double getAvrY(){
		return y/size;
	}
	
	public void setSumX(double x){
		this.x += x;
	}
	public void setSumY(double y){
		this.y += y;
	}
	public void setX(String x){
		this.x = Double.parseDouble(x);
	}
	public void setY(String y){
		this.y = Double.parseDouble(y);
	}
	
	public double getX(){
		return x;
	}
	public double getY(){
		return y;
	}
}
